<%@ page import="login.demo.User" %><%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/6/25
  Time: 20:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>结果展示</title>
</head>
<body>
    <div align="center">
        <%
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        User user = new User(username,password);

            if (!user.getUsername().equals("wg666")&& !user.getPassword().equals("123456")) {
                out.print("恭喜您，登录成功！");
            }else{
                out.print("请输入正确的用户名和密码！");
            }
        %>
        <br/><br/>
        <a href="index.jsp">返回</a>

    </div>
</body>
</html>
